<script type="text/javascript">
var postminchars = parseInt('$minpostsize');
var postmaxchars = parseInt('$maxpostsize');
var disablepostctrl = parseInt('$disablepostctrl');
</script>

<style>
	#f_post .postlist { border-top: none; }
	#f_post textarea { width: 600px; height: 5em; }
	#f_post button { display: none; }
	#f_post .postbtn { margin-top: 10px; }
	.toolbar { width: 600px; background: #EEE; }
		.toolbar a { float: left; width: 24px; height: 24px; background: url({IMGDIR}/editor.png) no-repeat 0 0; text-indent: -9999px; overflow: hidden; }
			.toolbar a.tb_bold { background-position: 0 0; }
			.toolbar a.tb_color { background-position: -48px 0; }
			.toolbar a.tb_img { background-position: -48px -24px; }
			.toolbar a.tb_quote { background-position: 0 -24px; }
			.toolbar a.tb_code { background-position: -72px 0; }
			.toolbar a.tb_smilies { background-position: -72px -24px; }
</style>
<div id="f_post">
<form method="post" id="fastpostform" action="post.php?action=reply&amp;fid=$fid&amp;tid=$tid&amp;extra=$extra&amp;replysubmit=yes&infloat=yes&handlekey=fastpost" onSubmit="return fastpostvalidate(this)">
	<div class="postlist s_clear">

			<div class="postauthor">
				<!--{if $discuz_uid}--><div class="avatar">{echo discuz_uc_avatar($discuz_uid)}</div><!--{/if}-->
			</div>
			<div class="postcontent">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="subject" value="" />
				<input type="hidden" name="usesig" value="$usesigcheck" />
				<!--{if $uchome['addfeed'] && $ucappopen['UCHOME'] && $forum['allowfeed']}-->
					<input type="hidden" name="addfeed" value="1" />
				<!--{/if}-->

				<span id="fastpostreturn"></span>
				<!--{if $thread[special] == 5 && empty($firststand)}-->
				<div style="margin-bottom: 1em; padding: 5px 10px; background: yellow;">
					{lang debate_viewpoint}: 
					<label><input type="radio" name="stand" value="0" />{lang debate_neutral}</label>
					<label><input type="radio" name="stand" value="1" />{lang debate_square}</label>
					<label><input type="radio" name="stand" value="2" />{lang debate_opponent}</label>
				</div>
				<!--{/if}-->
				<div class="toolbar">
					<span style="float:right">
						<a href="post.php?action=reply&fid=$fid&tid=$tid" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');return false;">{lang post_expert_newreply}</a>
					</span>
					{eval $seditor = array('fastpost', array('bold', 'color', 'img', 'quote', 'code', 'smilies'));}
					{subtemplate seditor}
				</div>
				<textarea rows="5" cols="80" name="message" id="fastpostmessage" onKeyDown="seditor_ctlent(event, 'fastpostvalidate($(\'fastpostform\'))');" tabindex="2" class="txtarea"></textarea>
				<!--{if $secqaacheck || $seccodecheck}--><div class="fastcheck">{eval $secchecktype = 3;}{template seccheck}</div><!--{/if}-->
				<p><button type="submit" name="replysubmit" id="fastpostsubmit" value="replysubmit" tabindex="3" class="radius10">{lang post_newreply}</button></p>
				
				<div class="postbtn" style="width: 180px;"><a href="#"><em><span>{lang post_newreply}</span></em></a></div>
			</div>
	</div>
</form>
</div>